﻿using Holla.Infrastructure.EntityFramework;

using Microsoft.EntityFrameworkCore;

namespace Holla.Core.Persistence
{
    public class CoreDbContextFactory : DesignTimeDbContextFactoryBase<CoreDbContext>
    {
        protected override string ConnectionStringName => "CoreDatabase";

        protected override string MainProjectName => "Core.Api";

        protected override string MigrationAssembly => "Holla.Core.Persistence";

        protected override CoreDbContext CreateNewInstance(DbContextOptions<CoreDbContext> options)
        {
            return new CoreDbContext(options);
        }
    }
}
